package com.light.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.light.common.utils.PageUtils;
import com.light.common.vo.WareStockVO;
import com.light.gulimall.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author minmin
 * @email 980680541@gmail.com
 * @date 2024-07-16 21:32:14
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据条件分页查询商品库存
     * @param params    查询条件
     * @return  查询结果
     */
    PageUtils queryByCondition(Map<String, Object> params);

    /**
     * 新增或更新库存
     *
     * @param itemIds 采购信息详情表主键id的集合
     */
    void addOrModitfy(List<Long> itemIds);

    List<WareStockVO> queryWareStock(List<Long> skuIds);
}

